package com.yunpeng.aidevice.dao.mapper.record;


import com.yunpeng.aidevice.dao.mapper.IRecordMapper;
import com.yunpeng.aidevice.dao.model.record.RuleScriptDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 规则表 Mapper 接口
 * </p>
 *
 * @author hemw
 * @since 2020-04-26
 */
@Mapper
public interface RuleScriptMapper extends IRecordMapper<RuleScriptDO> {

    /**
     * 根据角色代码获取实体
     *
     * @param ruleCodes 角色代码集合
     * @return
     */
    List<RuleScriptDO> getByRuleCodes(@Param("ruleCodes") List<String> ruleCodes);
}
